package com.file.system.plugin.task;

import cn.hutool.extra.spring.SpringUtil;
import cn.hutool.json.JSONUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.file.system.entity.system.WebTask;
import com.file.system.service.impl.system.WebTaskServiceImpl;
import com.file.system.service.system.IWebTaskService;
import com.file.system.tools.Formater;

import java.util.List;


public class DemoTask implements Runnable {

    private IWebTaskService iWebTaskService = SpringUtil.getBean(WebTaskServiceImpl.class);

    @Override
    public void run() {

        List<WebTask> list = iWebTaskService.list(new QueryWrapper<WebTask>());
        System.out.println(Formater.getNow() + "--------->>" + JSONUtil.toJsonStr(list));
    }
}
